package com.mastercard
//import com.mastercard.CreditCard

class Transaction {
	
	static auditable = true
	Date datetime
	String account
	double amount
	String currency
	
	//CreditCard creditCard
	//List categories
	
	static belongsTo = [creditCard: CreditCard]
	//static hasMany = [categories: Category]
    static constraints = {
		//creditCard nullable: true
		//categories (nullable:true)
		account nullable: true
    }
}
